(function () {
    "use strict";

    function reverseString(inputString)
    {
        var result = null;

        var inputStringAsCharArray = inputString.toString().split('');
        inputStringAsCharArray.reverse();
        result = inputStringAsCharArray.join('');

        return result;
    }

    console.log(reverseString("elpmas"));
}());